<template>
  <div class="content">
    <div class="block">
      <Navigation :navigation-list="[{id:1,value:'首页',url:'/home/index'},{id:2,value:'个人中心',url:'/mine-center/candidate'}]"></Navigation>
      <div class="search-content-in">
        <div class="content-menu">
          <div class="btn2 menu-title">个人中心</div>
          <div class="menu-list">
            <div v-for="(item) in menuList" :key="item.id" :class="tableId===item.id?'menu-list-content-check':''" class="menu-list-content" @click="tableId=item.id">{{ item.title }}
              <i v-if="tableId===item.id" class="el-icon-caret-right" style="color: #FE7725;margin-left: 5px"></i>
            </div>
          </div>
        </div>
        <div class="list-content">
            <div class="news-list">
              <Resume v-if="tableId===1"></Resume>
              <MyGetLookMeCollection v-else-if="tableId===2"></MyGetLookMeCollection>
              <MyGetLookMeConcern v-else-if="tableId===3"></MyGetLookMeConcern>
              <MyGetResume v-else-if="tableId===4"></MyGetResume>
              <MyGetLookMeVisit v-else-if="tableId===5"></MyGetLookMeVisit>
            </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>

import Resume from "@/components/MineCenter/Candidate/Resume.vue";
import MyGetResume from "@/components/MineCenter/Candidate/MyGetResume.vue";
import MyGetLookMeVisit from "@/components/MineCenter/Candidate/MyGetLookMeVisit.vue";
import MyGetLookMeConcern from "@/components/MineCenter/Candidate/MyGetLookMeConcern.vue";
import MyGetLookMeCollection from "@/components/MineCenter/Candidate/MyGetLookMeCollection.vue";
import Navigation from "@/components/Navigation/Navigation";

export default {
  name: "CustomerIndex",
  components: {
    Resume, Navigation,MyGetLookMeCollection,MyGetLookMeConcern,MyGetResume,MyGetLookMeVisit
  },
  data() {
    return {
      tableId: 1,
      menuList: [
        {id: 1, count: 0, title: "我的简历(个人信息)"},
        {id: 2, count: 0, title: "我的收藏"},
        {id: 3, count: 0, title: "我的关注"},
        {id: 4, count: 0, title: "我投递过的简历"},
        {id: 5, count: 0, title: "谁看过我"},
        //{id: 6, count: 0, title: "我的沟通"},
        // {id: 6, count: 0, title: "隐私设置"},
        // {id: 7, count: 0, title: "账号安全"},
      ],
      newsList: [],
      positionList: []
    }
  },
  methods: {},

  mounted() {
    if(this.$route.query.tableId)
    {
      this.tableId = parseInt(this.$route.query.tableId);
    }
  }
}
</script>

<style lang="scss" scoped>
.block {
  width: $contentWidth;
  margin: 0 auto;
  margin-top: 16px;
  min-height: $fullMinHeight;
}

.content {
  background-color: #F6F6F6;

  .content-title {
    margin: 20px 0 0 40%;
    width: 400px;
    height: 30px;
    cursor: auto;

  }

  .search-content-in {
    padding-top: 20px;
    display: flex;

    .content-menu {
      width: 260px;
      background-color: #FFFFFF;
      border-radius: 5px;
      height: 100%;

      .menu-title {
        width: 240px;
        height: 70px;
        cursor: auto;
        border-radius: 5px;
        font-size: 30px;
        margin: 10px 10px 0 10px;
        font-family: fzhzgbjt;
      }

      .menu-list {
        margin: 30px 10px 0 10px;

        .menu-list-content {
          font-size: 20px;
          padding: 11px 10px 12px 20px;
          border-bottom: 1px solid #F6F6F6;
          cursor: pointer;
          display: flex;
          flex-direction: row;
          align-items: center;
        }

        .menu-list-content-check {
          color: #FE7725;
        }

      }
    }

    .list-content {
      margin-left: 10px;

      .list-content-title {
        height: 55px;
        color: #FE7725;
        font-size: 24px;
        border-bottom: 1px solid #DBDBDB;
        margin: 30px 0 0 30px;
      }

      .news-list {
        padding-bottom: 15px;
        min-width: 950px;
        display: flex;
        cursor: pointer;

        .news-list-title {
          width: calc(90% - 3px);
        }

        .news-list-time {
          color: #DBDBDB;
        }
      }
    }
  }

  .position-search-content {
    width: 100%;
    margin-top: 0;
    height: 150px;
    background: #fff;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    .input-block {
      width: 900px;
      height: 55px;
      box-shadow: 3px 5px 15px 0 rgb(0 0 0 / 10%);
      border-radius: 30px;
      padding: 6px 0;
      display: flex;
      flex-direction: row;
      align-items: center;

      input {
        width: calc(100% - 110px);
        height: 100%;
        display: flex;
        align-items: center;
        background: none;
        padding: 0 20px;
        font-size: 18px;
      }

      .search-btn {
        width: 100px;
        height: 100%;
      }
    }

    .hot-block {
      width: 900px;
      display: flex;
      margin-top: 20px;
      flex-direction: row;
      color: $darkGray;
      font-size: 17px;
      padding-left: 10px;

      .hot-item {
        color: $darkGray;
        margin: 0 15px;
        cursor: pointer;
      }
    }
  }

}


</style>
